package com.oo.polymorphic_4.pizza;

import java.util.Scanner;

/**
 * PizzaTest--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 17:28
 **/
public class PizzaTest {

    public static void main(String[] args) {
        System.out.println("请选择想要制作的披萨：（1.培根披萨，2.海鲜披萨）");
        Scanner sc = new Scanner(System.in);
        int id = sc.nextInt();
        Pizza piz = PizzaFactory.getPizza(id);
        System.out.println("请输入披萨大小：");
        int size = sc.nextInt();
        System.out.println("请输入披萨价格：");
        int price = sc.nextInt();
        piz.setPrice(price);
        piz.setSize(size);
        piz.make();
    }
}
